<?xml version="1.0" encoding="UTF-8"?>
<html
    xmlns:ft="https://github.com/OpenType/fonttest"
    xmlns:xlink="http://www.w3.org/1999/xlink">
<head>
  <meta charset="UTF-8"/>
  <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Vollkorn|Vollkorn:i"/>
  <link rel="stylesheet" href="style.css"/>
</head>
<body>
<h3 id="GPOS-5">GPOS–5: Glyph Positioning for Variable Fonts</h3>

<div class="desc">
  The <a href="../fonts/TestGPOSFour.ttf">font</a> for this test case
  uses
  a <a href="https://www.microsoft.com/typography/otspec/gpos.htm#gposVar"
  >Glyph positioning table with font variations</a>.  If your text
  rendering engine is correct, the Sukun mark should be centered on
  the dots of the Shin letter, no matter the weight. If the placement
  is off for some weights, your text rendering system fails to
  handle <a href="https://www.microsoft.com/typography/otspec/otvarcommonformats.htm#IVS"
  >Item Variation Stores</a> inside GPOS tables.
</div>

<table>
  <tr>
    <th></th>
    <td>100</td>
    <td>300</td>
    <td>500</td>
    <td>700</td>
    <td>900</td>
  </tr>
  <tr>
    <th>Expected</th>
    <td class="expected" ft:id="GPOS-5/100" ft:var="wght:100"
	ft:render="شْ"
	ft:font="TestGPOSFour.ttf"><svg version="1.1" viewBox="0 -738 1164 2112"><symbol id="GPOS-5/100.uni0652" overflow="visible"><path d="M105,618 Q62,618 46,641 Q31,664 31,693 Q31,720 41,743 Q52,767 69,781 Q87,796 109,796 Q129,796 145,784 Q161,772 170,750 Q180,729 180,700 Q180,662 162,640 Q144,618 105,618 Z M106,641 Q123,641 140,652 Q158,664 158,700 Q158,733 142,753 Q126,773 107,773 Q83,773 68,749 Q53,725 53,694 Q53,661 70,651 Q88,641 106,641 Z" /></symbol><symbol id="GPOS-5/100.uni0634" overflow="visible"><path d="M302,-230 Q249,-230 203,-216 Q157,-202 122,-175 Q88,-149 69,-110 Q50,-72 50,-22 Q50,3 54,30 Q58,58 69,92 Q80,126 102,171 L125,160 Q109,128 98,97 Q87,66 81,36 Q76,6 76,-19 Q76,-80 107,-122 Q138,-164 190,-185 Q242,-206 306,-206 Q382,-206 430,-184 Q478,-162 504,-127 Q531,-93 541,-52 Q551,-12 551,26 Q551,60 546,93 Q541,126 533,161 Q525,196 515,236 L540,244 Q549,206 554,184 Q560,162 564,146 Q568,130 574,108 Q584,75 597,55 Q610,36 630,27 Q650,19 683,19 Q706,19 726,23 Q746,27 762,46 Q779,66 791,112 Q804,158 813,242 L838,238 Q835,220 830,196 Q826,173 823,150 Q820,127 820,110 Q820,78 826,58 Q833,38 856,28 Q880,19 933,19 Q966,19 993,28 Q1020,37 1036,61 Q1052,85 1052,131 Q1052,160 1047,191 Q1043,222 1033,260 Q1023,299 1006,353 L1031,363 Q1044,320 1054,281 Q1065,242 1071,206 Q1077,170 1077,137 Q1077,91 1063,63 Q1049,35 1026,20 Q1004,5 979,0 Q954,-5 932,-5 Q889,-5 863,1 Q838,8 825,21 Q812,34 806,54 Q801,74 798,100 L809,100 Q800,58 783,35 Q766,13 741,4 Q716,-5 682,-5 Q648,-5 626,3 Q604,12 591,26 Q578,40 571,57 Q564,75 560,93 L577,61 Q579,2 566,-50 Q554,-103 523,-143 Q492,-184 438,-207 Q384,-230 302,-230 Z M777,550 Q767,550 759,558 Q751,566 751,577 Q751,587 759,595 Q767,603 777,603 Q788,603 796,595 Q804,587 804,577 Q804,566 796,558 Q788,550 777,550 Z M725,467 Q715,467 707,475 Q699,483 699,494 Q699,505 707,512 Q715,520 725,520 Q736,520 744,512 Q752,505 752,494 Q752,483 744,475 Q736,467 725,467 Z M830,467 Q819,467 811,475 Q804,483 804,494 Q804,505 811,512 Q819,520 830,520 Q841,520 849,512 Q857,505 857,494 Q857,483 849,475 Q841,467 830,467 Z" /></symbol><use x="663" y="144" xlink:href="#GPOS-5/100.uni0652" /><use x="0" y="0" xlink:href="#GPOS-5/100.uni0634" /></svg></td>

    <td class="expected" ft:id="GPOS-5/300" ft:var="wght:300"
	ft:render="شْ"
	ft:font="TestGPOSFour.ttf"><svg version="1.1" viewBox="0 -738 1186 2112"><symbol id="GPOS-5/300.uni0652" overflow="visible"><path d="M111,618 Q68,618 49,642 Q31,667 31,699 Q31,727 42,750 Q53,774 72,788 Q91,803 115,803 Q137,803 154,790 Q172,777 182,754 Q193,732 193,705 Q193,666 171,642 Q150,618 111,618 Z M111,655 Q128,655 143,666 Q158,678 158,705 Q158,731 143,747 Q129,764 112,764 Q90,764 77,745 Q65,726 65,702 Q65,677 79,666 Q93,655 111,655 Z" /></symbol><symbol id="GPOS-5/300.uni0634" overflow="visible"><path d="M307,-231 Q252,-231 204,-216 Q156,-202 119,-174 Q82,-146 61,-105 Q40,-64 40,-12 Q40,13 44,40 Q49,68 59,100 Q69,133 87,173 L134,154 Q121,124 112,96 Q103,68 98,42 Q94,16 94,-7 Q94,-63 123,-101 Q152,-140 201,-159 Q251,-178 311,-178 Q383,-178 430,-159 Q477,-141 504,-111 Q531,-81 541,-45 Q552,-9 552,26 Q552,65 546,101 Q541,137 531,173 Q522,209 511,249 L564,264 Q573,226 579,203 Q585,180 589,165 Q593,150 597,134 Q608,99 621,80 Q635,62 655,55 Q675,48 704,48 Q725,48 743,52 Q761,57 776,76 Q791,95 802,139 Q814,183 823,262 L873,253 Q870,235 866,210 Q862,185 858,161 Q855,137 855,120 Q855,97 861,80 Q868,64 889,56 Q911,48 957,48 Q989,48 1014,54 Q1039,61 1053,82 Q1067,103 1067,147 Q1067,174 1061,206 Q1055,239 1043,278 Q1031,317 1016,363 L1069,383 Q1082,345 1093,305 Q1104,265 1111,227 Q1118,189 1118,158 Q1118,109 1104,77 Q1090,46 1067,27 Q1044,9 1015,2 Q986,-5 956,-5 Q917,-5 891,1 Q866,8 851,20 Q836,33 828,53 Q821,73 817,99 L840,99 Q827,59 808,36 Q790,14 764,4 Q738,-5 701,-5 Q668,-5 646,3 Q624,12 610,26 Q597,40 589,57 Q582,75 578,93 L607,51 Q605,-2 590,-52 Q576,-103 543,-143 Q510,-184 452,-207 Q395,-231 307,-231 Z M800,548 Q785,548 774,559 Q763,570 763,585 Q763,600 774,611 Q785,623 800,623 Q816,623 827,611 Q838,600 838,585 Q838,570 827,559 Q816,548 800,548 Z M741,451 Q725,451 714,462 Q703,474 703,489 Q703,505 714,516 Q725,527 741,527 Q756,527 767,516 Q778,505 778,489 Q778,474 767,462 Q756,451 741,451 Z M861,451 Q845,451 834,462 Q823,474 823,489 Q823,505 834,516 Q845,527 861,527 Q876,527 887,516 Q899,505 899,489 Q899,474 888,462 Q877,451 861,451 Z" /></symbol><use x="680" y="165" xlink:href="#GPOS-5/300.uni0652" /><use x="0" y="0" xlink:href="#GPOS-5/300.uni0634" /></svg></td>

    <td class="expected" ft:id="GPOS-5/500" ft:var="wght:600"
	ft:render="شْ"
	ft:font="TestGPOSFour.ttf"><svg version="1.1" viewBox="0 -738 1309 2112"><symbol id="GPOS-5/500.uni0652" overflow="visible"><path d="M124,618 Q78,618 54,646 Q31,674 31,712 Q31,743 43,768 Q56,794 78,809 Q101,825 130,825 Q156,825 176,809 Q197,794 209,769 Q221,745 221,717 Q221,675 194,646 Q167,618 124,618 Z M123,677 Q140,677 152,688 Q165,699 165,717 Q165,736 152,748 Q139,761 124,761 Q105,761 94,748 Q84,735 84,718 Q84,700 95,688 Q106,677 123,677 Z" /></symbol><symbol id="GPOS-5/500.uni0634" overflow="visible"><path d="M332,-232 Q265,-232 210,-216 Q155,-200 114,-168 Q73,-136 50,-90 Q28,-44 28,17 Q28,40 32,70 Q36,100 46,136 Q57,172 76,216 L180,179 Q169,149 161,124 Q153,99 149,77 Q146,55 146,35 Q146,-9 167,-42 Q189,-76 231,-95 Q274,-114 335,-114 Q398,-114 440,-99 Q483,-85 507,-61 Q532,-37 542,-6 Q553,25 553,60 Q553,94 546,130 Q540,167 528,206 Q517,246 503,290 L621,321 Q630,282 637,256 Q644,231 648,215 Q653,199 656,188 Q666,155 680,139 Q695,123 714,118 Q733,113 757,113 Q776,113 792,118 Q808,124 821,143 Q835,162 845,203 Q856,245 865,318 L976,299 Q973,277 969,251 Q965,226 961,202 Q958,179 958,164 Q958,150 965,138 Q973,127 992,120 Q1012,113 1050,113 Q1078,113 1099,118 Q1120,123 1131,139 Q1143,156 1143,190 Q1143,215 1135,250 Q1127,285 1114,326 Q1101,367 1086,409 L1205,446 Q1220,407 1232,361 Q1244,316 1251,272 Q1259,228 1259,196 Q1259,144 1244,106 Q1230,68 1202,43 Q1175,18 1136,6 Q1098,-5 1051,-5 Q1015,-5 985,2 Q956,10 935,24 Q915,39 904,61 Q893,83 892,112 L926,112 Q910,64 886,39 Q863,14 832,4 Q802,-5 767,-5 Q738,-5 715,1 Q692,8 674,20 Q657,32 645,51 Q634,70 629,94 L668,50 Q664,-11 642,-62 Q621,-113 580,-151 Q539,-190 477,-211 Q415,-232 332,-232 Z M864,588 Q840,588 823,605 Q807,622 807,646 Q807,670 823,687 Q840,704 864,704 Q887,704 904,687 Q921,670 921,646 Q921,622 904,605 Q887,588 864,588 Z M789,464 Q765,464 748,481 Q731,498 731,522 Q731,546 748,563 Q765,580 789,580 Q812,580 829,563 Q846,546 846,522 Q846,498 829,481 Q812,464 789,464 Z M936,464 Q913,464 896,481 Q879,498 879,522 Q879,546 896,563 Q913,580 936,580 Q960,580 977,563 Q994,546 994,522 Q994,498 977,481 Q960,464 936,464 Z" /></symbol><use x="730" y="246" xlink:href="#GPOS-5/500.uni0652" /><use x="0" y="0" xlink:href="#GPOS-5/500.uni0634" /></svg></td>

    <td class="expected" ft:id="GPOS-5/700" ft:var="wght:700"
	ft:render="شْ"
	ft:font="TestGPOSFour.ttf"><svg version="1.1" viewBox="0 -738 1370 2112"><symbol id="GPOS-5/700.uni0652" overflow="visible"><path d="M129,618 Q81,618 56,647 Q31,677 31,717 Q31,748 44,775 Q58,802 81,818 Q104,834 134,834 Q162,834 183,818 Q205,802 217,776 Q230,751 230,722 Q230,678 202,648 Q174,618 129,618 Z M128,682 Q145,682 157,693 Q170,704 170,722 Q170,741 157,753 Q144,766 129,766 Q110,766 99,753 Q89,740 89,723 Q89,705 100,693 Q111,682 128,682 Z" /></symbol><symbol id="GPOS-5/700.uni0634" overflow="visible"><path d="M343,-232 Q271,-232 213,-215 Q155,-199 113,-166 Q71,-133 48,-84 Q26,-36 26,28 Q26,51 30,82 Q34,113 45,152 Q56,192 78,241 L201,198 Q190,166 182,141 Q174,116 170,94 Q166,73 166,52 Q166,12 184,-20 Q202,-53 242,-72 Q282,-92 347,-92 Q407,-92 447,-78 Q487,-65 510,-41 Q533,-18 543,13 Q553,44 553,80 Q553,108 546,143 Q540,178 528,219 Q516,260 501,307 L641,343 Q650,304 657,277 Q664,251 669,233 Q674,216 677,205 Q687,175 701,159 Q716,144 734,139 Q753,134 776,134 Q795,134 811,140 Q827,146 840,165 Q854,185 865,226 Q876,267 885,339 L1017,318 Q1013,294 1009,268 Q1005,243 1002,220 Q999,198 999,184 Q999,171 1006,160 Q1014,149 1034,142 Q1054,135 1091,135 Q1118,135 1138,140 Q1158,146 1169,161 Q1180,177 1180,206 Q1180,231 1172,266 Q1164,302 1151,344 Q1138,386 1123,430 L1264,472 Q1280,429 1292,380 Q1305,332 1312,286 Q1320,240 1320,207 Q1320,154 1304,114 Q1289,74 1259,47 Q1230,21 1188,8 Q1146,-5 1094,-5 Q1056,-5 1024,3 Q993,12 970,28 Q948,44 936,67 Q924,91 925,121 L959,121 Q944,66 918,39 Q892,12 860,3 Q828,-5 795,-5 Q769,-5 745,0 Q721,5 701,16 Q682,28 668,47 Q654,67 649,95 L686,55 Q684,-13 659,-66 Q634,-119 589,-156 Q545,-193 482,-212 Q420,-232 343,-232 Z M889,614 Q863,614 845,633 Q827,652 827,678 Q827,704 845,722 Q863,740 889,740 Q915,740 933,722 Q951,704 951,678 Q951,652 933,633 Q915,614 889,614 Z M809,482 Q783,482 765,501 Q747,520 747,546 Q747,572 765,590 Q783,608 809,608 Q835,608 853,590 Q871,572 871,546 Q871,520 853,501 Q835,482 809,482 Z M964,482 Q939,482 920,501 Q902,520 902,546 Q902,572 920,590 Q939,608 964,608 Q990,608 1008,590 Q1026,572 1026,546 Q1026,520 1008,501 Q990,482 964,482 Z" /></symbol><use x="750" y="282" xlink:href="#GPOS-5/700.uni0652" /><use x="0" y="0" xlink:href="#GPOS-5/700.uni0634" /></svg></td>

    <td class="expected" ft:id="GPOS-5/900" ft:var="wght:900"
	ft:render="شْ"
	ft:font="TestGPOSFour.ttf"><svg version="1.1" viewBox="0 -738 1476 2112"><symbol id="GPOS-5/900.uni0652" overflow="visible"><path d="M137,618 Q85,618 58,650 Q31,682 31,725 Q31,758 45,786 Q59,815 84,832 Q110,850 142,850 Q172,850 195,833 Q219,816 232,788 Q246,761 246,730 Q246,684 215,651 Q185,618 137,618 Z M136,690 Q153,690 165,701 Q178,712 178,730 Q178,749 165,761 Q152,774 137,774 Q118,774 107,761 Q97,748 97,731 Q97,713 108,701 Q119,690 136,690 Z" /></symbol><symbol id="GPOS-5/900.uni0634" overflow="visible"><path d="M366,-232 Q295,-232 233,-216 Q171,-201 124,-168 Q77,-136 50,-86 Q24,-36 24,33 Q24,61 28,92 Q32,123 43,163 Q55,204 79,263 L235,209 Q221,170 213,145 Q206,121 203,102 Q201,84 201,63 Q201,26 220,-2 Q240,-31 278,-47 Q316,-64 371,-64 Q415,-64 450,-55 Q486,-46 511,-28 Q536,-10 549,17 Q563,45 563,82 Q563,110 555,150 Q547,190 534,237 Q522,284 506,335 L684,380 Q693,342 700,312 Q708,283 713,263 Q718,244 722,234 Q732,205 742,189 Q752,174 768,169 Q784,164 808,164 Q837,165 856,171 Q875,177 888,197 Q901,218 910,260 Q919,303 928,376 L1096,350 Q1091,323 1086,297 Q1082,272 1079,251 Q1077,230 1077,216 Q1077,202 1085,189 Q1094,177 1114,170 Q1135,163 1171,163 Q1200,163 1217,170 Q1235,177 1243,191 Q1251,206 1251,231 Q1251,258 1244,294 Q1237,331 1224,374 Q1212,418 1196,467 L1362,516 Q1380,466 1393,412 Q1406,359 1413,310 Q1421,261 1421,225 Q1421,170 1404,127 Q1387,85 1353,55 Q1320,26 1272,10 Q1224,-5 1163,-5 Q1128,-5 1097,2 Q1066,9 1042,25 Q1019,42 1005,70 Q991,98 991,141 L1025,141 Q1004,75 975,44 Q947,13 912,4 Q878,-5 838,-5 Q822,-5 799,-2 Q777,1 754,11 Q731,21 713,41 Q696,62 692,97 L743,43 Q740,-24 707,-75 Q675,-127 621,-162 Q568,-197 502,-214 Q436,-232 366,-232 Z M931,674 Q899,674 878,695 Q857,717 857,746 Q857,777 878,799 Q899,821 931,821 Q962,821 983,799 Q1005,777 1005,746 Q1005,717 983,695 Q962,674 931,674 Z M846,517 Q814,517 792,540 Q770,563 770,593 Q770,621 792,644 Q814,668 846,668 Q874,668 896,644 Q918,621 918,593 Q918,563 896,540 Q874,517 846,517 Z M1019,517 Q989,517 969,540 Q949,563 949,593 Q949,621 969,644 Q989,668 1019,668 Q1050,668 1072,644 Q1094,621 1094,593 Q1094,563 1072,540 Q1050,517 1019,517 Z" /></symbol><use x="784" y="351" xlink:href="#GPOS-5/900.uni0652" /><use x="0" y="0" xlink:href="#GPOS-5/900.uni0634" /></svg></td>

  </tr>

  <tr>
    <th>Observed</th>
    <td class="observed" ft:id="GPOS-5/100"/>
    <td class="observed" ft:id="GPOS-5/300"/>
    <td class="observed" ft:id="GPOS-5/500"/>
    <td class="observed" ft:id="GPOS-5/700"/>
    <td class="observed" ft:id="GPOS-5/900"/>
  </tr>

  <tr>
    <th class="conformance-header">Conformance</th>
    <td class="conformance" ft:id="GPOS-5/100"/>
    <td class="conformance" ft:id="GPOS-5/300"/>
    <td class="conformance" ft:id="GPOS-5/500"/>
    <td class="conformance" ft:id="GPOS-5/700"/>
    <td class="conformance" ft:id="GPOS-5/900"/>
  </tr>
</table>
</body>
</html>



  
